package com;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author YongQiang
 * @Date 2020/10/9 9:39
 * @Version 1.0
 */
public class Hello {
    public static String formatPattern = "yyyy-MM-dd HH:mm:ss";
    public static void main(String[] args) throws ParseException {
        //System.out.println("123");
        //System.out.println(6 & 1);
        String xx="2020-09-23 17:50:41:52";
        String xxx="2020-09-23 17:50:41:53";

        Date nowTime = new Date();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat(formatPattern);
        Date date1 = simpleDateFormat.parse(xx);
        System.out.println(date1.getTime());
        Date date2 = simpleDateFormat.parse(xxx);
        System.out.println(date2.getTime());

    }
}
